package TestPaperSystem.Dto;

import TestPaperSystem.entity.ExamPaperQu;
import TestPaperSystem.entity.Paper;
import TestPaperSystem.utils.DateGetter;
import lombok.Data;

import java.util.List;

@Data
public class PaperDetails extends Paper {

    private static final long serialVersionUID = 1L;

    private List<ExamPaperQu> radioList;

    private List<ExamPaperQu> multiList;

    private List<ExamPaperQu> judgeList;

    private List<ExamPaperQu> saqList;

    private Long timeRemaining;


    public Long getTimeRemaining(){
        return (DateGetter.getInstance().getTimeAftTime("MINUTE",super.getCreateTime().getTime() , getTotalTime()).getTime()
                - System.currentTimeMillis()) / 1000;
    }


}
